# cmake needs this line
cmake_minimum_required(VERSION 3.1)
 
 
# Define project name
project(opencv_example_project)

SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pthread")
 
find_package(OpenCV REQUIRED)
 
message(STATUS "OpenCV library status:")
message(STATUS "    version: ${OpenCV_VERSION}")
message(STATUS "    libraries: ${OpenCV_LIBS}")
message(STATUS "    include path: ${OpenCV_INCLUDE_DIRS}")
 
find_package(PCL 1.8 REQUIRED)
include_directories(${PCL_INCLUDE_DIRS})
link_directories(${PCL_LIBRARY_DIRS})
add_definitions(${PCL_DEFINITIONS})
 
 
 
# Declare the executable target built from your sources
 
add_library(python2share SHARED ApiShare_dll.cpp)
 
#add_executable(send send_example.cpp ApiShare_dll.cpp)
#add_executable(client recive_example.cpp ApiShare.cpp)
add_executable(send send_example.cpp)
add_executable(client recive_example.cpp)
 
# Link your application with OpenCV libraries
target_link_libraries(send ${OpenCV_LIBS} )
target_link_libraries(client ${OpenCV_LIBS} )
target_link_libraries(python2share ${OpenCV_LIBS})


add_library(python_share_memory SHARED api_share_ros.cpp)
target_link_libraries(python_share_memory ${OpenCV_LIBS} ${PCL_LIBRARIES})

add_executable(pcl_opencv pcl_opencv.cpp)
target_link_libraries(pcl_opencv ${OpenCV_LIBS} ${PCL_LIBRARIES})
